<div class="customers index">
	<h2><?php __('Customers');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('mac_address');?></th>
			<th><?php echo $this->Paginator->sort('modem_type');?></th>
			<th><?php echo $this->Paginator->sort('serial_no');?></th>
			<th><?php echo $this->Paginator->sort('account_number');?></th>
			<th><?php echo $this->Paginator->sort('inst_first_name');?></th>
			<th><?php echo $this->Paginator->sort('inst_last_name');?></th>
			<th><?php echo $this->Paginator->sort('inst_mid_name');?></th>
			<th><?php echo $this->Paginator->sort('salutation');?></th>
			<th><?php echo $this->Paginator->sort('language');?></th>
			<th><?php echo $this->Paginator->sort('contact_role');?></th>
			<th><?php echo $this->Paginator->sort('phone1');?></th>
			<th><?php echo $this->Paginator->sort('phone2');?></th>
			<th><?php echo $this->Paginator->sort('credit_rating');?></th>
			<th><?php echo $this->Paginator->sort('inst_street');?></th>
			<th><?php echo $this->Paginator->sort('inst_house_no');?></th>
			<th><?php echo $this->Paginator->sort('inst_zip');?></th>
			<th><?php echo $this->Paginator->sort('inst_city');?></th>
			<th><?php echo $this->Paginator->sort('po_box');?></th>
			<th><?php echo $this->Paginator->sort('bill_street');?></th>
			<th><?php echo $this->Paginator->sort('bill_house_no');?></th>
			<th><?php echo $this->Paginator->sort('bill_zip');?></th>
			<th><?php echo $this->Paginator->sort('bill_city');?></th>
			<th><?php echo $this->Paginator->sort('collection');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($customers as $customer):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $customer['Customer']['id']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['mac_address']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['modem_type']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['serial_no']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['account_number']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_first_name']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_last_name']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_mid_name']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['salutation']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['language']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['contact_role']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['phone1']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['phone2']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['credit_rating']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_street']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_house_no']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_zip']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['inst_city']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['po_box']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['bill_street']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['bill_house_no']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['bill_zip']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['bill_city']; ?>&nbsp;</td>
		<td><?php echo $customer['Customer']['collection']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $customer['Customer']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $customer['Customer']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $customer['Customer']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $customer['Customer']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Customer', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Adresscorrections', true), array('controller' => 'adresscorrections', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Adresscorrection', true), array('controller' => 'adresscorrections', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Customershasmacs', true), array('controller' => 'customershasmacs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Customershasmac', true), array('controller' => 'customershasmacs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Pendingordershascustomers', true), array('controller' => 'pendingordershascustomers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Pendingordershascustomer', true), array('controller' => 'pendingordershascustomers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Productshascustomers', true), array('controller' => 'productshascustomers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Productshascustomer', true), array('controller' => 'productshascustomers', 'action' => 'add')); ?> </li>
	</ul>
</div>